const enter = {
  mounted(el, binding) {
    if (typeof binding.value != "function") {
      console.log("callback must be a function");
    }
    el.setAttribute("tabindex", 0);
    // function handleKeydown(e) {
    //   if (e.keyCode === 13 || e.keyCode === 100) {
    //     binding.value(e);
    //   }
    // }
    // document.addEventListener("keydown", handleKeydown);
  },
};

export default enter;
